import 'package:trollee/generated/json/base/json_convert_content.dart';
import 'package:trollee/app/core/http/pagination.dart';

Pagination $PaginationFromJson(Map<String, dynamic> json) {
	final Pagination pagination = Pagination();
	final int? totalPage = jsonConvert.convert<int>(json['totalPage']);
	if (totalPage != null) {
		pagination.totalPage = totalPage;
	}
	final int? totalCount = jsonConvert.convert<int>(json['totalCount']);
	if (totalCount != null) {
		pagination.totalCount = totalCount;
	}
	final int? pageNo = jsonConvert.convert<int>(json['pageNo']);
	if (pageNo != null) {
		pagination.pageNo = pageNo;
	}
	return pagination;
}

Map<String, dynamic> $PaginationToJson(Pagination entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['totalPage'] = entity.totalPage;
	data['totalCount'] = entity.totalCount;
	data['pageNo'] = entity.pageNo;
	return data;
}
